package com.ruoyi.base.service.impl;

import com.ruoyi.base.domain.BaseMeeting;
import com.ruoyi.base.mapper.BaseMeetingMapper;
import com.ruoyi.base.service.IBaseMeetingService;
import com.ruoyi.cems.domain.dto.EmergencyDuty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.UUID;

@Service
public class BaseMeetingServiceImpl implements IBaseMeetingService {

    @Autowired
    private BaseMeetingMapper baseMeetingmapper;
    /**
     * 添加会议
     *
     * @param baseMeeting
     * @return
     */
    @Override
    public int insertBaseMeeting(BaseMeeting baseMeeting) {
        return baseMeetingmapper.insertBaseMeeting(baseMeeting);
    }

    /**
     * 更新会议
     *
     * @param baseMeeting
     * @return
     */
    @Override
    public int updateBaseMeeting(BaseMeeting baseMeeting) {
        return baseMeetingmapper.updateBaseMeeting(baseMeeting);
    }

    /**
     * 根据ID删除会议
     *
     * @param ID
     * @return
     */
    @Override
    public int deleteBaseMeetingById(String ID) {
        return baseMeetingmapper.deleteBaseMeeting(ID);
    }

    /**
     * 根据ID查询会议
     *
     * @param ID
     * @return
     */
    @Override
    public BaseMeeting selectBaseMeetingById(String ID) {
        return baseMeetingmapper.selectBaseMeetingById(ID);
    }

    /**
     * 查询会议列表
     *
     * @param baseMeeting
     * @return
     */
    @Override
    public List<BaseMeeting> selectBaseMeetingList(BaseMeeting baseMeeting) {
        return baseMeetingmapper.selectBaseMeetingList(baseMeeting);
    }

    @Override
    public List<EmergencyDuty> selectEmergencyDutyList(BaseMeeting baseMeeting) {
        return baseMeetingmapper.selectEmergencyDutyList(baseMeeting);
    }
}
